package org.rc.service;


import org.rc.entity.RoomDev;

import java.util.List;

public interface RoomDevService {

    void addRoomDevs(List<RoomDev> roomDevs);

    void deleteRoomDevs(Long roomId);

    void deleteRoomsDev(List<Long> roomIds);

    List<RoomDev> getBindRoomDev(Integer type);

    List<RoomDev> getDevsByRoomId(Long roomId);

    List<RoomDev> getByRoomIds(List<Long> roomIds);

    List<RoomDev> getBindRoomDevByTypeAndDevIds(Integer type,List<Long> devIds);

    RoomDev getRoomDevByTypeAndDevId(Integer type, Long devId);

    List<RoomDev> getRoomDevByRoomIdAndDevId(Integer type, Long roomId);

    void deleteByTypeAndId(Integer type,Long id);
    void deleteByTypeAndIds(Integer type,List<Long> ids);

}
